import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path:"/",
    redirect:"/xiaoqu",
  },
  {
    path:"/xiaoqu",
    component:() => import('../components/XiaoQuComponent'),
  },
    //帮买取路由
  {
    path: "/help/mendian",
    component:() => import('../components/MenDianComponent'),
  },
  {
    path: "/help/yizhan",
    component:() => import('../components/YiZhanComponent'),
  },
  {
    path:"/help/shangpin",
    component:() => import('../components/ShangPinComponent'),
  },
  {
    path:"/help/dingdan",
    component:() => import('../components/DingDanComPonent'),

    children:[
      {
        path:"",
        component:() => import('../components/order/HelpBuyComponent'),
      },
      {
        path:"qu",
        component:() => import('../components/order/HelpQuComponent'),
      },
      {
        path: "song",
        component:() => import('../components/order/HelpSongComponent'),
      },
    ],
  },
  {
    path:"/help/feipinhuishou",
    component:() => import('../components/FeiPinHuiShouComponent')
  },

]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
